package lianxi4;

public class TestCompany {
    public static void main(String[] args) {
        ColaEmployee[] cola={new SalariedEmployee("张三",5,5000),new HourlyEmployee("李四",7,30,200),new SalesEmployee("王五",2,4500,0.4)};
        for(int i=0;i<cola.length;i++){
            //查询5月份的工资
            Company.printSalary(cola[i],5);
        }
    }
}
